//
//  HGdlDataBase.h
//  个人项目(豆瓣元旦作业)
//
//  Created by dllo on 16/1/9.
//  Copyright © 2016年 guoguo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "DengLuDataBaseModel.h"

@interface HGdlDataBase : NSObject

{
    sqlite3 *dbOpint;
}

//创键单例对象
+ (HGdlDataBase *)sharedHGdlDataBase;

//打开数据库

- (void)openDB;

//创建表单

- (void)createTable;

//插入数据

- (void)insertData:(DengLuDataBaseModel *)model;


//删除数据

- (void)deleteData:(DengLuDataBaseModel *)model;


//修改数据

- (void)updateData:(DengLuDataBaseModel *)model;

//查询数据

- (NSMutableArray *)selectData;






@end
